package com.herench.bs.support;

import java.io.Serializable;

public enum ServiceStatus implements Serializable {
    Starting, Started, Stopping, Stopped, Suspending, Suspended;

    public boolean isStartable() {
        return this == Stopped || this == Suspended;
    }

    public boolean isStoppable() {
        return this == Started || this == Suspended;
    }

    public boolean isSuspendable() {
        return this == Started;
    }

    public boolean isStarting() {
        return this == Starting;
    }

    public boolean isStarted() {
        return this == Started;
    }

    public boolean isStopping() {
        return this == Stopping;
    }

    public boolean isStopped() {
        return this == Stopped;
    }

    public boolean isSuspending() {
        return this == Suspending;
    }

    public boolean isSuspended() {
        return this == Suspended;
    }

}